package com.wfm.threads.virturalthread;

import java.util.Map;

public class VirtualThreadWithIO {
   public static void main(String[] args) throws InterruptedException {
//       Thread vThread = Thread.ofVirtual().start(() -> {
//           try {
//               Thread.sleep(1000); // 虚拟线程的阻塞操作不会影响性能
//               System.out.println("Completed sleep in virtual thread");
//           } catch (InterruptedException e) {
//               e.printStackTrace();
//           }
//       });
//       vThread.join();
   }
}
